/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.activity.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ykht.proj.activity.entity.VDiscountPlanShop;
import com.ykht.proj.activity.vo.CnDiscountShopVoReq;
import com.ykht.proj.activity.vo.VDiscountPlanVo;

import java.util.List;

/**
 * 优惠方案和门店关联表
 *
 * @author csg
 * @date 2021-05-18 14:26:34
 */
public interface VDiscountPlanShopService extends IService<VDiscountPlanShop> {
	/**
	 * 获取 创建优惠方案获取门店列表（根据品牌id, 门店名, 地址查询)
	 * @param cnDiscountShopVoReq
	 * @return
	 */
    List<CnDiscountShopVoReq> getByDiscountPlanShop(CnDiscountShopVoReq cnDiscountShopVoReq);

	/**
	 * 门店方案记录分页查询
	 * @param page 分页
	 * @param vDiscountPlanVo 条件
	 * @return
	 */
	IPage<VDiscountPlanVo> getVDiscountPlanShopPage(Page page, VDiscountPlanVo vDiscountPlanVo);

	/**
	 * 获取协议列表 有优惠方案的门店数量
	 * @param brandIdList
	 * @return
	 */
	List<VDiscountPlanVo> getShopCount(List<Long> brandIdList);
}
